from datetime import time

# 创建一个时间
t1 = time(hour=22, minute=16, second=5)
print(t1)  # 22:16:05

print(t1.hour, t1.minute, t1.second)  # 22 16 5

t2 = t1.replace(minute=10)
print(t2)  # 22:10:05
